
     
#import "ZGLHotCell_b.h"
@interface ZGLHotCell_b()
@property(nonatomic, retain)UILabel *recReason;
@end
@implementation ZGLHotCell_b
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _recReason = [[UILabel alloc]init];
        _recReason.textColor = [UIColor redColor];
        _recReason.font = [UIFont systemFontOfSize:10];
        [self.background addSubview:_recReason];
    }
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.background.frame = CGRectMake(12, 12, Width-25, (int)130*ScaleX);
    self.img.frame = CGRectMake((int)15*ScaleX, 10, (int)105*ScaleX, (int)70*ScaleX);
    self.title.frame = CGRectMake((int)130*ScaleX, 30, (int)205*ScaleX, 45);
    self.source.frame = CGRectMake(15, (int)70*ScaleX+35, 100, 15);
    _recReason.frame = CGRectMake((int)130*ScaleX, 10, 100, 15);
    self.line.frame = CGRectMake(15, (int)70*ScaleX+25, Width-55, 1);
}

- (void)setMod:(ZGLHotModel *)mod{

    [self setOtherMod:mod];
    self.height = (int)70*ScaleX+75;
    if (![mod.recReason isEqualToString:@""]) {
        self.recReason.text = mod.recReason;
    }
}

@end

